package com.iweb.dao;

import com.common.model.Page;


import com.iweb.pojo.Admin;
import com.iweb.pojo.User;

import java.io.Serializable;
import java.util.List;

public interface UserDao {
    User findById(Serializable admin_id)throws Exception;
    User findByUsername(String user_name)throws Exception;
    void deleteById(Serializable id)throws Exception;
    List<User> findAll(Page page)throws Exception;

    long selectCount()throws Exception;

    void save(User user)throws Exception;


    /*杨遂萍新增*/
    void saveByPhone(User user)throws Exception;
    User findUserByPhone(String user_phone)throws Exception;
    User findUser(String type,String account) throws Exception;
//    User retrievePassword(User user) throws Exception;
}
